From: Ian Campbell Date: Mon, 17 Jan 2011 17:14:20 +0000 (+0000) Subject: tools/blktap, blktap2: include instead of X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~10920 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=a4f86af3e4d955172d35f2b5b4db95288d6138ff;p=xen.git tools/blktap, blktap2: include instead of The former is a userspace sanitised header which contains the definitions we need. In some distros linux/fs.h defines WRITE which conflicts with blktaps own use of that name. Also there is no reason to use over the more normal . Signed-off-by: Ian Campbell Committed-by: Ian Jackson --- diff --git a/tools/blktap/drivers/blk_linux.c b/tools/blktap/drivers/blk_linux.c index f1b14bd6e8..bb52717050 100644 --- a/tools/blktap/drivers/blk_linux.c +++ b/tools/blktap/drivers/blk_linux.c @@ -1,6 +1,6 @@ #include #include -#include +#include #include "tapdisk.h" #include "blk.h" diff --git a/tools/blktap2/drivers/blk_linux.c b/tools/blktap2/drivers/blk_linux.c index 75ddcc389f..85763acada 100644 --- a/tools/blktap2/drivers/blk_linux.c +++ b/tools/blktap2/drivers/blk_linux.c @@ -1,7 +1,7 @@ #include +#include #include -#include -#include +#include #include "tapdisk.h" #include "blk.h"